package com.ly.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ly.entity.News;
import com.ly.pojo.vo.NewsVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author : 黑渊白花
 * @date : 2025/2/8 22:09
 */
@Mapper
public interface NewsMapper extends BaseMapper<News> {
    public IPage<NewsVO> getAllPage(
            @Param("page") IPage<NewsVO> page,
            String title, String teamName);

    IPage<NewsVO> getPage(
            @Param("page") IPage<NewsVO> page,
            Integer teamId,String title);

    List<NewsVO> getNewsClickNum();
}
